package com.rran.study.designpattern.behavioral.state;

/**
 * @author yy
 * @Type Test.java
 * @Desc
 * @date 2020/7/27 19:04
 */
public class Test {

    public static void main(String[] args) {
        Work work = new Work();
        work.setHour(6);
        work.writeProgram();
        work.setHour(13);
        work.writeProgram();
        work.setHour(24);
        work.writeProgram();
    }
}
